﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center">
        <strong><span style="font-size: 16pt">成绩录入页面<br />
        </span></strong>
        <table border="1">
            <tr>
                <td style="width: 72px">
                    输入姓名:</td>
                <td>
                    <asp:TextBox ID="txtNum" runat="server"></asp:TextBox></td>
                <td align="left" style="width: 147px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNum"
                        ErrorMessage="RequiredFieldValidator">"必须输入学号！"</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 72px">
                    输入成绩</td>
                <td>
                    <asp:TextBox ID="txtScore" runat="server"></asp:TextBox></td>
                <td align="left" style="width: 147px">
                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtScore"
                        ErrorMessage="RangeValidator" MaximumValue="100" MinimumValue="0" Type="Integer">"成绩值应在0～100之间"</asp:RangeValidator></td>
            </tr>
            <tr>
                <td style="width: 72px">
                </td>
                <td>
                    <asp:Button ID="btnOK" runat="server" OnClick="Button1_Click" Text="录入" /></td>
                <td align="left" style="width: 147px">
                </td>
            </tr>
        </table>
        <br />
        <br />
        <asp:Label ID="lblMsg" runat="server" Text="Label"></asp:Label>:<br />
    
    </div>
    </form>
</body>
</html>
